<div class="form">

	<?php
	$properties = array(
		'id'=>'manga-form',
		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
		'enableAjaxValidation'=>false,
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'title');
		?>
		<?php
		echo $form->textField(
			$model, 'title', array('size'=>60, 'maxlength'=>255)
		);
		?>
		<?php echo $form->error($model, 'title');
		?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'author');
		?>
		<?php
		echo $form->textField(
			$model, 'author', array('size'=>60, 'maxlength'=>255)
		);
		?>
		<?php echo $form->error($model, 'author');
		?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'artist');
		?>
		<?php
		echo $form->textField(
			$model, 'artist', array('size'=>60, 'maxlength'=>255)
		);
		?>
		<?php echo $form->error($model, 'artist');
		?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'tags');
		?>
		<?php
		echo $form->textField(
			$model, 'tags', array('size'=>60, 'maxlength'=>255)
		);
		?>
		<?php echo $form->error($model, 'tags');
		?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'cover');
		?>
		<?php
		echo $form->fileField($model, 'cover');
		?>
		<?php echo $form->error($model, 'cover');
		?>
	</div>

	<div class="row buttons">
		<?php
		echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
		?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->